﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace AuctionHelper.Entity
{
    /// <summary>
    /// 坐标类
    /// </summary>
    public class Coordinate
    {
        /// <summary>
        /// 左
        /// </summary>
        public int Left { get; set; }

        /// <summary>
        /// 上
        /// </summary>
        public int Top { get; set; }

        /// <summary>
        /// 右
        /// </summary>
        public int Right { get; set; }

        /// <summary>
        /// 下
        /// </summary>
        public int Bottom { get; set; }

        /// <summary>
        /// 点击坐标 X
        /// </summary>
        public virtual int Click_X
        {
            get
            {
                return (int)(Left + (Right - Left) / 2);
            }
        }

        /// <summary>
        /// 点击坐标 Y
        /// </summary>
        public virtual int Click_Y
        {
            get
            {
                return (int)(Top + (Bottom - Top) / 2);
            }
        }
    }
}
